<script type="text/javascript">
	//设为首页 www.juzibook.com
	function SetHome(obj, url) {
		try {
			obj.style.behavior = 'url(#default#homepage)';
			obj.setHomePage(url);
		} catch (e) {
			if (window.netscape) {
				try {
					netscape.security.PrivilegeManager
							.enablePrivilege("UniversalXPConnect");
				} catch (e) {
					alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");
				}
			} else {
				alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将【" + url + "】设置为首页。");
			}
		}
	}

	//收藏本站 www.juzibook.com
	function AddFavorite(title, url) {
		try {
			window.external.addFavorite(url, title);
		} catch (e) {
			try {
				window.sidebar.addPanel(title, url, "");
			} catch (e) {
				alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请使用Ctrl+D进行添加");
			}
		}
	}
	function submitSearchForm() {
		document.getElementById("search_form").submit(); 
		//$("#search_form").submit();
	}
</script>
<div class="top">
	<ul class="ul1">
		<li class="fl mr_14"><ul>
				<#if readerpcuser??>
				<li class="fl w_250"><a>${(readerpcuser.userNickname)!''}</a>
					[<a href="${path}/user/info">个人中心</a>] [<a href="${path}/user/logout">退出</a>]</li>
				</#if>

			</ul></li>
		<li class="fr"><ul>
				<li class="fl"><a href="javascript:void(0);"
					onclick="SetHome(this,'http://47.97.154.194:8080/readerpc');">设为首页</a> ｜ <a
					href="javascript:void(0);"
					onclick="AddFavorite('学而阅读',location.href)">收藏本站</a>
			</ul></li>
	</ul>
</div>

<div class="ind_her">
	<div class="logo">
		<a href="${path}/home/index"><img src="${path}/image/logo3.png" width="152"
			height="123"></a>
	</div>
	<div class="ind_seek">
		<form method="post" action="${path}/search/index" name="search_form"
			id="search_form">
			<input type="text" placeholder="书名/作者/内容" class="input_ind1"
				name="bookName" id="bookName" value="${(searchBook.bookName)!''}"> <input type="button"
				class="input_ind2" onclick="submitSearchForm();">
		</form>
	</div>
	<#if readerpcuser??> <#else>
	<div class="ind_login">
		<a href="${path}/user/toLogin"><img src="${path}/image/ind_02.png">登录</a><a
			href="${path}/user/toRegister"><img
			src="${path}/image/ind_03.png"> 注册</a>
	</div>
	</#if>
</div>

<div class="clear"></div>

<div class="nav_bg">
	<div class="nav">
		<ul class="ul1">
			<li class="fl <#if ((nav)!0)==1>current</#if>"><a href="${path}/home/index">首页</a></li>
			<li class="fl <#if ((nav)!0)==2>current</#if>"><a href="${path}/stack/index">书库</a></li>
			<li class="fl <#if ((nav)!0)==3>current</#if>"><a href="${path}/rank/index">排行</a></li>
			<li class="fl <#if ((nav)!0)==4>current</#if>"><a href="${path}/recharge/index">充值</a></li>
			<li class="fl nav-ul1-pc"><a href="http://47.97.154.194:8081/readerAuthor"
				target="_blank">作者专区</a></li>
			<li class="fl nav-ul1-phone <#if ((nav)!0)==4>current</#if>">
				<a href="${path}/user/info">个人中心</a>
			</li>
		</ul>
	</div>
</div>